import http from '@/axios/index.js'

// 查询部门树
export const queryDeptTreeReq = () => {
    return http.get('/sys/dept/query/tree');
}

// 添加部门
export const addReq = (data) => {
    return http.post('/sys/dept/add',data);
}

// 修改部门
export const updateReq = (data) => {
    return http.put('/sys/dept/update',data);
}


// 删除部门
export const deleteReq = (id) => {
    return http.delete('/sys/dept/delete/'+id);
}
